getTextHorizontalAlignment

abstract fun getTextHorizontalAlignment(block: DesignBlock, paragraphIndex: Int = -1): HorizontalAlignment?

Returns the paragraph-level horizontal alignment override for a specific paragraph, or the block-level alignment for negative paragraph indices.

Return

the paragraph-level alignment override, null if none is set, or the block-level alignment.

Parameters

block

the text block to query.

paragraphIndex

the 0-based index of the paragraph to query. Negative values return the block-level text/horizontalAlignment setting.